from pydantic import BaseModel, Field

class DeviceStatusUpdate(BaseModel):
    status: str

class SocketDevice(BaseModel):
    device: str
    type: int
    port: int
    ip: str
    isMarster: int = 0  # 将默认值指定为 0，且类型为 int
    status: int = 0     # 将默认值指定为 0，且类型为 int
